<a href="index.php" title="Accueil">Accueil</a> | <a href="projet.php">Le projet</a>
<div id="login">

	<?php  //Si non connecte
		if(!isset($_SESSION['login'])){
	?>
		<form action="connexion.php" method="post">
			Login : <input type="text" name="login" value="Login" class="input-text" style="width:100px;" onfocus="if(this.value=='Login')this.value=''" onblur="if(this.value=='') this.value='Login'" />
			Password : <input type="password" name="password" value="password" class="input-text" style="width:100px;" onfocus="if(this.value=='password') this.value=''" onblur="if(this.value=='') this.value='password'" />
			&nbsp;<input type="submit" value="Valider" class="input-button" style="width:60px;" /><br />
			<?php
				if(!isset($_SESSION['id'])){
					echo '<div id="legend">
						<a href="inscription.php" title="S\'inscrire">Inscription</a> | <a href="oubli.php">Identifiants perdus</a>
					</div>';
				}
			?>
		</form>


	<?php
	} else {	//Si connecte
	?>
		<form action="deconnexion.php" id="logout" method="post">
		Salut <?php echo $_SESSION['login']; ?> !
			<input type="submit" name="submit" value="D&eacute;connexion" class="input-button" />
		</form>
	<?php } ?>
</div>